package com.czk.model.responsebilitychain.practice;

/**
 * 审批人
 * @Author:ChenZhangKun
 * @Date: 2020/12/9 21:53
 */
public abstract class Commiter {
    /**
     * 下一个审批人
     */
    public Commiter commiter;
    /**
     * 审批人名称
     */
    private String name;

    /**
     * 定义抽象方法，右具体执行人来实现
     * @param leaveForm
     */
    public abstract void commit(LeaveForm leaveForm);

    public Commiter getCommiter() {
        return commiter;
    }

    public void setCommiter(Commiter commiter) {
        this.commiter = commiter;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
